-- GENERATED SPELL FOR [Theramore Marine] --


function spell0_3385(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_3385', 653, 1)
end

function spell1_3385(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3385', 5291, 1)
end

function spell2_3385(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(72,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3385', 6000, 1)
end

function Sorts_3385(pUnit, Event)
local choix_sorts_3385 = math.random(0, 2)
if choix_sorts_3385 == 0 then
pUnit:RegisterEvent('spell0_3385', 1, 1)
end
if choix_sorts_3385 == 1 then
pUnit:RegisterEvent('spell1_3385', 1, 1)
end
if choix_sorts_3385 == 2 then
pUnit:RegisterEvent('spell2_3385', 1, 1)
end
end

function mob3385_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3385', math.random(1500, 3000), 1)
end

function mob3385_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3385_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3385_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3385, 1, 'mob3385_Action')
RegisterUnitEvent(3385, 2, 'mob3385_Leave')
RegisterUnitEvent(3385, 3, 'mob3385_Kill')
RegisterUnitEvent(3385, 4, 'mob3385_Die')
